package tr.edu.ege.kipler.syntax;

/**
 * 
 * @author İnanç Seylan
 *
 */
public class Name  {
	private String uri;

	protected Name() {

	}

	/**
	 * @return the uri
	 */
	public String getUri() {
		return uri;
	}

	/**
	 * @param uri
	 *            the uri to set
	 */
	protected void setUri(String uri) {
		this.uri = uri;
	}

	public Name copy() {
		return this;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj != null && (obj.getClass().equals(this.getClass()))) {
			Name other = (Name) obj;
			return getUri().equals(other.getUri());
		}
		return false;
	}

	@Override
	public int hashCode() {
		return 17 * 37 + getUri().hashCode();
	}

	@Override
	public String toString() {
		return getUri();
	}

}
